<%@ page contentType="text/html;charset=gb2312"%>
<%@ include file="check.jsp"%>
<jsp:useBean id="cart" class="cart.Cart" scope="session"/>
<%
	String id="";
	String act="";
	request.setCharacterEncoding("gb2312");
	if(request.getParameter("dealid")!=null)
		id=request.getParameter("dealid");
	if(request.getParameter("act")!=null)
		act=request.getParameter("act");
	cart.setItem(id);
	cart.setAct(act);
	cart.processRequest();
	if(act.equals("add"))
		response.sendRedirect("list.jsp");
	else
		response.sendRedirect("cart.jsp");
%>
